﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HalconDotNet;

namespace ImageDefine
{
    public class CameraActionerBase
    {
        public CameraToolBase setting;
        public HImage imageInput;
        public HImage imageOutput;
        public int iRunTimeCount;
        public bool bInitOk;
        public CameraActionerBase()
        {
            setting = new CameraToolBase();
        }
        public CameraActionerBase(CameraToolBase toolBase)
        {
            setting = toolBase;
        }
        public virtual void  ShowFrm(string name)
        {
           
        }
        virtual public void InitCam(string strFullName)
        {
            bInitOk = true;
        }
        virtual public HImage GrabImage()
        {
            return null;
        }
        virtual public void SetGainAndShutter(int gain, double shutter)
        {
            
        }
        virtual public void Close()
        {
           
        }
        virtual public void SetGain(int gain)
        {

        }
        virtual public void SetShutter(double shutter)
        {

        }
        virtual public int GetGain()
        {
            return 0;
        }
        virtual public double GetShutter()
        {
            return 0.0;
        }
        virtual public void SetTragMode(bool bTragOn)
        {

        }
        virtual public bool GetTragMode()
        {
            return false;
        }
    }
}
